<?php

interface View
{
    /**
     * get the data (for the parser)
     * @return array data
     */
    public function data();
    
    /**
     * get the target module
     * @return string module
     */
    public function module();
    
    /**
     * name of the templatefile to use for parsing
     * @return string templatefilename
     */
    public function templateFile();
}

class ViewException extends PhException
{}

/*

class PlanetOverview implements View
{
    public function __construct($params)
    {
        
    }
    
    public function data()
    {
        
    }
    
    public function module()
    {
        return 'planet';
    }
    
    public function templateFile()
    {
        return 'planetoverview';
    }
}

*/